<template>
  <div>
    <!-- index -->
    <header>
      <router-link to="/">VUE Router</router-link>
    </header>
    <aside>
      <div class="t100"></div>
      <br>
      <router-link to="/index">首页</router-link>
      <br>
      <router-link to="/index/cart">购物车</router-link>
      <br>
      <router-link to="/index/comA">comA</router-link>
    </aside>
    <article>
      <router-view></router-view>
    </article>
  </div>
</template>

<script>
export default {

}
</script>

<style>
  header {
    height: 50px;
    line-height: 50px;
    background-color: #f0f0f0;
    border-bottom: 2px solid red;
  }
  aside {
    height: 100vh;
    width: 200px;
    border-right: 2px solid red;
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
  }
  .t100 {
    margin-top: 100px;
  }
  article {
    position: fixed;
    margin-left: 210px;
    background-color: red;
  }
</style>